package com.ruoyi.grade.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.grade.domain.entity.StudentTotalGrade;

import java.util.List;

public interface IStudentTotalGradeService extends IService<StudentTotalGrade> {

    /**
     * @param updateSupport 是否更新支持，如果已存在，则进行更新数据
     */
    String importUser(List<StudentTotalGrade> studentTotalGradeList, Boolean updateSupport);

    /**
     * 检查学生总成绩是否存在
     * @param studentId 学号
     */
    Boolean checkStudentTotalGradeExist(String studentId, String academicYear, String semester);

    /**
     * 获取学生总成绩id
     * @param studentId
     * @return
     */
    Long getStudentTotalGradeIdByStudentId(String studentId, String academicYear, String semester);
}
